<form action="filteredCars" method="post">
Filter by brand : 
	<select name="brand">
		<option></option>
		<#list brands as brand>
			<option>${brand}</option>
		</#list>
	</select>

	<br />
	<input type="submit" value="Filter">
</form>
<table class = "datatable">
	<tr>
		<td>
			<label>Filtered Cars List</label></br>
			  <table class="cartable">
			    <tr>
			        <th>Plate number</th>
			        <th>Brand</th>
			        <th>Model</th>
			        <th>Owner</th>
			    </tr>
			    <#list cars as car>
				    <tr>
				        <td>${car.numarMatricol}</td> 
				        <td>${car.marca}</td>
				        <td>${car.model}</td>
				       	<#if car.contact?has_content>
				       		<td>${car.contact.firstname}</td>
				       	</#if>
				    </tr>
			    </#list>
			  </table>
		 </td>
	</tr>
</table>
<table class = "datatable">
	<#if errors?has_content>
	    <#list errors as error>
	    	<br>${error}</br>
	    </#list>
    </#if>
</table>
<table class = "datatable">
	<#if delError?has_content>
    	<br>${delError}</br>
    </#if>
</table>
<table class = "datatable">
	<#if updateError?has_content>
    	<br>${updateError}</br>
    </#if>
</table>